﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2024-09-17 22:40
    /// 描 述：实体类
    /// </summary>
    [Table("storeOrderDetail")]
    public class StoreOrderDetailEntity : BaseEntity
    {
        /// <summary>
        /// 订单表ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? order_id { get; set; }
        /// <summary>
        /// 订单商品ID
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? goods_id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        /// <returns></returns>
        public string goods_name { get; set; }
        /// <summary>
        /// 购买商品数量
        /// </summary>
        /// <returns></returns>
        public int? goods_cnt { get; set; }
        /// <summary>
        /// 购买商品单价
        /// </summary>
        /// <returns></returns>
        public float? goods_price { get; set; }
        /// <summary>
        /// 货品ID（弃用）
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? pw_id { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? modified_time { get; set; }
        /// <summary>
        /// 商铺id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? shop_id { get; set; }
        /// <summary>
        /// 货物名称
        /// </summary>
        /// <returns></returns>
        public string pw_name { get; set; }
        /// <summary>
        /// 颜色id
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? colorid { get; set; }
        /// <summary>
        /// 产品集合ids
        /// </summary>
        /// <returns></returns>
        public string productids { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string colorname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string colorurl { get; set; }
    }
}
